// pages/SetUp/SetUp.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    // 财富等级
    Wealth: [
      {
        id: 0,
        name: '0-2'
      },
      {
        id: 1,
        name: '3-10'
      },
      {
        id: 2,
        name: '11-19'
      }
    ],
    // 智慧等级
    Wisdom: [
      {
        id: 0,
        name: '0-3'
      },
      {
        id: 1,
        name: '4-10'
      },
      {
        id: 2,
        name: '11-19'
      }
    ],

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    wx.setNavigationBarTitle({
      title: "社交设置"
    }) 
  },

  listenerSwitch: function(e){
    var Switch = e.detail.value;
    if (Switch){
      wx.showToast({
        title: '公开',
        icon: 'none',
        duration: 3000
      });
    }else{
      wx.showToast({
        title: '保密',
        icon: 'none',
        duration: 3000
      });
    }
  }
})